package cn.tedu.pojo.customer.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class CustomerLoginAddNewDTO  implements Serializable {

    @ApiModelProperty(value = "用户名",example ="customer01", required = true)
    @NotNull(message = "注册失败，必须提交用户名！")
    /*用户名*/
    private String userName;

    @NotNull(message = "注册失败，必须提交密码！")
    @ApiModelProperty(value = "密码",example ="12345", required = true)
    /*用户密码*/
    private String userPassword;
}
